﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GBMS.IBLL;
using KPIS.GERP.GBMS.MODEL;

namespace KPIS.GERP.GBMS.IBLL
{
    public interface IExpenseBLL 
    {
        string Insert(string Code, string Name, string Description, string ExpenseType, string Parent, string ExpenseGroup, string ExpenseGroupReal, string IcmResourceType, string IcmResourceSeq, string GfmisCode);

        void Update(string Sequence, string Code, string Name, string Description, string ExpenseType, string Parent, string ExpenseGroup, string ExpenseGroupReal, string IcmResourceType, string IcmResourceSeq, string GfmisCode);

        void Delete(string Sequence);

        IList<ExpenseInfo> Search(string Sequence, string ExpenseType);

        IList<ExpenseInfo> Search(string Sequence, string Code, string Name, string Description, string ExpenseType, string Parent, string ExpenseGroup, string ExpenseGroupReal);

        IList<TreeViewInfo> TreeView(IList<TreeViewInfo> treeView, bool isRootNode, string expGrp);

        bool CheckDuplicateCode(string code);
    
    }
}
